package com.chenbei.erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chenbei.erp.domain.SupplierContact;

import java.util.List;

public interface ISupplierContactService extends IService<SupplierContact> {

    /**
     * 批量新增
     * @param supplierId 供应商ID
     * @param contacts 联系人集合
     */
    void batchAdd(Long supplierId, List<SupplierContact> contacts);

    /**
     * 通过供应商ID获取联系人集合
     * @param supplierId 供应商ID
     * @return List
     */
    List<SupplierContact> listBySupplierId(Long supplierId);
}
